extends "../afuleer-2/afuleer-2.gd"


func _extInit():
	._extInit()
	lv = 3             #等级的设置
	addSkill("使我方所有碧蓝航线阵营的舰娘伤害提高25%，所有赤色中轴、塞壬阵营的敌人获得25%易伤", "北方联合舰队")

var p3_1 = 1.25
var p3_2 = 0.25
var index = 0
func _upS():
	._upS()
	index += 1
	if index >= 2:
		index = 0
		for i in getAllChas(1):
			if i.hasBuff("b_avrora2") == null and (i.get("camp") == "赤色中轴" or i.get("camp") == "塞壬"):
				i.addBuff(b_avrora2.new(p3_1))
		for i in getAllChas(2):
			if i.hasBuff("b_avrora3") == null and i.get("camp") == "碧蓝航线":
				i.addBuff(b_avrora3.new(p3_2))

class b_avrora2:
	extends "../../../azurlane_ctrl/AzurBuff.gd"
	var num = 1
	var p1 = 1.5
	func _init(p = 1.5):
		attInit()
		id = "b_avrora2"
		self.p1 = p
		buffName = "北方联合舰队-易伤"
		dispel = 2
	func _connect():
		masCha.connect("onHurt",self,"_onHurt")
	func _onHurt(atkInfo):
		if atkInfo.hurtVal > 0 && not atkInfo.isMiss:
			atkInfo.factor += (p1 - 1)

class b_avrora3:
	extends "../../../azurlane_ctrl/AzurBuff.gd"
	var num = 1
	func _init(p = 0.5):
		attInit()
		id = "b_avrora3"
		att.atkR = p
		buffName = "北方联合舰队-伤害加成"
		dispel = 2
